package warthog.scangen;


public final class Hook extends Regex {
	private Regex r;
	public Hook(Regex r) { this.r = r; }
	@Override
	public void connect(Node start, Node end) {
		Node a = new Node();
		Node b = new Node();
		this.r.connect(a, b);
		start.eps(a);
		b.eps(end);
		a.eps(b);
	}
}
